package com.hrsoft.modules.bid.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hrsoft.common.utils.PageUtils;
import com.hrsoft.common.utils.Query;

import com.hrsoft.modules.bid.dao.BiddingDao;
import com.hrsoft.modules.bid.entity.BiddingEntity;
import com.hrsoft.modules.bid.service.BiddingService;


@Service("biddingService")
public class BiddingServiceImpl extends ServiceImpl<BiddingDao, BiddingEntity> implements BiddingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BiddingEntity> page = this.page(
                new Query<BiddingEntity>().getPage(params),
                new QueryWrapper<BiddingEntity>()
        );

        return new PageUtils(page);
    }

}